#zotero-tb-search-menu-button {
	margin: 0 -1px 0 -4px;
	border: 0;
	background: transparent;
	/* Mozilla file copied from chrome://browser/skin/mainwindow-dropdown-arrow.png
	   for availability in Standalone */
	list-style-image: url("chrome://zotero/skin/win/mainwindow-dropdown-arrow.png");
	-moz-image-region: rect(0, 13px, 11px, 0);
}

#zotero-tb-search-menu-button .button-menu-dropmarker {
	display: none;
}

#zotero-tb-search-menu-button:hover:active,
#zotero-tb-search-menu-button[open="true"] {
	-moz-image-region: rect(0, 26px, 11px, 13px);
}

#zotero-tb-search .textbox-search-icon {
	visibility: hidden;
}

#zotero-tb-sync-error {
	margin-right: 4px;
	padding-top: 4px;
}

#zotero-tb-sync {
	margin-right: 1px;
	padding-top: 4px;
}

#zotero-tb-fullscreen {
	margin-left: 2px;
	margin-right: 5px;
}

#zotero-view-tabbox tab {
	padding-left: .7em;
	padding-right: .7em;
}

#zotero-toolbar {
	-moz-appearance: toolbox !important;
	padding-left: 2px;
}

#zotero-toolbar:-moz-system-metric(windows-compositor) {
	-moz-appearance: none !important;
	background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0));
	background-color: rgb(207, 219, 236) !important;
	border-width: 0 0 1px 0;
	border-style: solid;
	border-color: #818790;
}

#zotero-collections-tree, #zotero-items-tree, #zotero-view-item {
	-moz-appearance: none;
	border-style: solid;
	border-color: #818790;
	margin: 0;
	padding: 0;
	-moz-border-top-colors: none;
	-moz-border-bottom-colors: none;
	-moz-border-right-colors: none;
	-moz-border-left-colors: none;
}

/* Undo tree row spacing change in Fx25 on Windows */
#zotero-collections-tree treechildren::-moz-tree-row,
#zotero-items-tree treechildren::-moz-tree-row,
#zotero-prefs treechildren::-moz-tree-row {
	height: 1.6em;
}

#zotero-collections-tree {
	border-width: 0 1px 1px 0;
}

/* Restore row highlighting on drag over, though I'm not sure how we're losing it to begin with. */
#zotero-collections-tree treechildren::-moz-tree-row(dropOn) {
	background-color: Highlight;
}

#zotero-items-tree {
	border-width: 0 1px;
}

#zotero-view-item {
	padding: 0 !important;
	-moz-appearance: none;
	background-color: -moz-field;
	border-width: 1px 0 0  1px;
}

#zotero-view-tabbox > tabs {
	margin-top: 2px;
}

#zotero-item-pane-groupbox {
	-moz-appearance: none !important;
	border-radius: 0;
	border-width: 0 0 0 1px;
	border-color: #818790;
	border-style: solid;
}

#zotero-editpane-item-box > scrollbox, #zotero-view-item > tabpanel > vbox, 
#zotero-editpane-tags > scrollbox, #zotero-editpane-related {
	padding-top: 5px;
}

#zotero-editpane-tags > scrollbox {
	padding-left: 5px;
}

#zotero-view-item > tabpanel > vbox {
	padding-left: 5px;
}